﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Nhd.Models
{
    public class Nhd_People
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int PeopleID { get; set; }
        [Required(ErrorMessage = "请输入姓名.")]
        [StringLength(200)]
        public string Name { get; set; }
        [Required(ErrorMessage = "请输入原籍地址.")]
        [StringLength(200)]
        public string NativeAddress { get; set; }
        public bool Sex { get; set; }
        [Required(ErrorMessage = "请输入身份证号.")]
        [StringLength(200)]
        public string CardID { get; set; }
        [Required(ErrorMessage = "请输入电话.")]
        [StringLength(200)]
        public string Tel { get; set; }
        public int StreetID { get; set; }
        public int CommunityID { get; set; }
        [Required(ErrorMessage = "请输入门牌号.")]
        [StringLength(200)]
        public string Address { get; set; }
        public DateTime Modtime { get; set; }
        public int Creator { get; set; }

    }
}
